package 权限修饰符;

public class class2 {
    public void method() {
        class1 one = new class1();
        //private不可访问
        //System.out.println(one.num);
        System.out.println(one.num1);
        System.out.println(one.num2);
        System.out.println(one.num3);

    }
}
